package com.ys.nms.module.business.controller.admin.otheroid.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;
import com.ys.nms.framework.excel.core.annotations.DictFormat;
import com.ys.nms.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 补充其它OID Response VO")
@Data
@ExcelIgnoreUnannotated
public class OtherOidRespVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "29324")
    @ExcelProperty("id")
    private Long id;

    @Schema(description = "中文名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @ExcelProperty("中文名称")
    private String name;

    @Schema(description = "英文名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("英文名称")
    private String field;

    @Schema(description = "OID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8848")
    @ExcelProperty("OID")
    private String oid;

    @Schema(description = "设备", requiredMode = Schema.RequiredMode.REQUIRED, example = "24049")
    @ExcelProperty("设备")
    private Integer deviceId;

    @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "类型", converter = DictConvert.class)
    @DictFormat("add_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String addType;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}